package com.huluobo.base.db;

import androidx.room.Dao;
import androidx.room.Delete;
import androidx.room.Insert;
import androidx.room.OnConflictStrategy;
import androidx.room.Query;
import androidx.room.Update;

import com.huluobo.base.bean.VideoBeanResult;

import java.util.List;

/**
 * Created by LC on 2024/9/4.
 */
@Dao
public interface VideoDao {
    @Insert(onConflict = OnConflictStrategy.REPLACE)
    void insertVideoInfo(VideoBeanResult.VideoBean videoBean);

    @Update
    void updateVideoInfo(VideoBeanResult.VideoBean videoBean);

    @Delete
    void deleteVideoInfo(VideoBeanResult.VideoBean videoBean);

    @Query("select * from video_info")
    List<VideoBeanResult.VideoBean> queryAllVideos();
}
